package project.pianpian.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;
import project.pianpian.entity.Upvote;

@Mapper
@Repository
@Service
public interface UpvoteMapper extends BaseMapper<Upvote> {

    Upvote getUpvoteById(int upvoterId);
    int addUpvote(Upvote upvote);

}
